package org.william.common_boot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.context.annotation.PropertySource;


/**
 * 
 * Description: 
 * @author xuhongwei
 * @version 1.0
 * <pre>
 * Modification History: 
 * Date         Author      Version     Description 
------------------------------------------------------------------
 * 2018年9月4日   	 xhw         1.0 	Version 
 * </pre>
 */
@EnableAutoConfiguration
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class,DataSourceTransactionManagerAutoConfiguration.class })
@MapperScan(basePackages = {"org.william.common_boot.business.dao"})
//@ComponentScan(basePackages="org.william.common_boot")
// 可以改名字 ，然后制定到这个这个配置文件上面
@PropertySource(ignoreResourceNotFound=true,value="classpath:service.properties")
public class Application {
		
	
	public static void main(String[] args) {
		
		SpringApplication.run(Application.class	, args);
		
	}
}
